import Vue from 'vue'
import Router from 'vue-router'
import About from '@/components/about'
import Head from '@/components/head'
import Message from '@/components/message'
import Pubish from '@/components/pubish'
import User from '@/components/user'
import Topic from '@/components/topic'
import Detail from '@/components/detail'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Toic',
            component: Topic
        },
        {
            path: '/pubish',
            name: 'Pubish',
            component: Pubish
        },
        {
            path: '/message',
            name: 'Message',
            component: Message
        },
        {
            path: '/about',
            name: 'About',
            component: About
        },
        {
            path: '/user',
            name: 'User',
            component: User
        },
        {
            path: '/detail',
            name: 'Detail',
            component: Detail
        }
    ]
})